Debug printfs for populating the completion store
authorFederico Mena Quintero <federico@gnu.org>
Thu, 13 Mar 2008 00:37:05 +0000 (00:37 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Thu, 13 Mar 2008 00:37:05 +0000 (00:37 +0000)
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19824

gtk/gtkfilechooserentry.c

index 7e868380827b886c0083bafb27fecdedf45c9b57..f016c376ae279a05b9b14201592be98495f59fde 100644 (file)
@@ -747,8 +747,13 @@ populate_completion_store (GtkFileChooserEntry *chooser_entry)
   GSList *paths;
   GSList *tmp_list;
 
+  printf ("Populating completion store\n");
+
   if (!gtk_file_folder_list_children (chooser_entry->current_folder, &paths, NULL)) /* NULL-GError */
-    return;
+    {
+      printf ("No children in the folder!  Leaving an empty completion store.\n");
+      return;
+    }
 
   discard_completion_store (chooser_entry);
 
@@ -779,6 +784,8 @@ populate_completion_store (GtkFileChooserEntry *chooser_entry)
                              PATH_COLUMN, path,
                              -1);
 
+         printf ("Completion store += \"%s\"\n", display_name);
+
          gtk_file_info_free (info);
           g_free (display_name);
        }